package com.junzhiit.nengji.cms.web.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.junzhiit.nengji.cms.service.MyContactsService;
import com.junzhiit.nengji.cms.web.vo.DataTablesParamVO;
import com.junzhiit.nengji.cms.web.vo.UserVO;

import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping("/my/contacts")
public class MyContactsController {

	@Autowired
	MyContactsService myContactsService;
	
	@ApiOperation(value="获取所有我的人脉")
	@RequestMapping(method=RequestMethod.GET)
	public Map<String,Object> queryUserList(DataTablesParamVO dtp,UserVO userVO){
		return myContactsService.queryUserList(dtp,userVO);
	}
}
